{extend name='admin@main'}

{block name="button"}

{/block}

{block name="content"}

<div class="think-box-shadow">
    {include file='customer/follow/index_search'}
	<!--<div class="layui-tab layui-tab-card think-bg-white">
        <ul class="layui-tab-title notselect">
            <li data-type='' {if $Think.get.status eq 0} class="layui-this" {/if} data-open='{:url("")}?status=0&page=1'>全部</li>
            <li data-type="" {if $Think.get.status eq 1} class="layui-this" {/if} data-open='{:url("")}?status=1&page=1'>待审核<span class="layui-badge"></span></li>
            <li data-type="" {if $Think.get.status eq 2} class="layui-this" {/if} data-open='{:url("")}?status=2&page=1'>已审核</li>
        </ul>
    </div>-->
    <div class="layui-obj">
    	{if auth("admin/customer.follow/addFollow")}
        <button data-modal='{:url("addFollow")}' data-title="添加跟进" class='layui-btn layui-btn-sm layui-btn-primary'>添加</button>
        {/if}
        <!--{if auth("admin/customer.customer/export")}
        <button data-title="导出" class='layui-btn layui-btn-sm layui-btn-primary' data-export-table="" data-export-url="{:url("export")}">导出</button>
        {/if}-->
    </div>
    <table class="layui-table margin-top-0" lay-skin="line" data-export-name='table'>
        {notempty name='list'}
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
            </th>
            <th class='text-left nowrap'>客户编号</th>
            <th class='text-left nowrap'>公司名</th>
            <th class='text-left nowrap'>联系人姓名</th>
            <th class="text-left">来源渠道</th>
            <th class="text-left">是否成交</th>
            <th class="text-left">跟进时间</th>
            <!--<th class="text-left">跟进内容</th>-->
            <th class="text-left">负责人</th>
            <th class="text-left">创建时间</th>
            <th>操作</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr data-dbclick>
            <td class='list-table-check-td think-checkbox'>
                <input class="list-check-box" value='{$vo.id}' type='checkbox'>
            </td>
            <td class='text-left nowrap'>{$vo.customer_unique|default=''}</td>
            <td class='text-left nowrap'>{$vo.company_name|default=''}</td>
            <td class='text-left nowrap'>{$vo.link_name|default=''}</td>
            <td class='text-left nowrap'>
                {$vo.source_type_cn|default=''}
            </td>
            <td class='text-left nowrap'>
                {$vo.transaction_cn|default=''}
            </td>
            <td class='text-left nowrap'>
                {$vo.follow_at|default=''}
            </td>
            <!--<td class='text-left nowrap'>
                
                <textarea name="" rows="5" cols="30"  disabled="disabled" >{$vo.content|default=''}</textarea>
            </td>-->
            <td class='text-left nowrap'>
                {$vo.charger_cn|default=''}
            </td>                            
            <td class='text-left nowrap'>日期：{$vo.created_at|format_datetime|str_replace=' ','<br><span class="color-desc">时间：',###|raw}</span></td>

            <td class='text-left nowrap'>            	
            	{if auth("admin/customer.follow/editFollow")}
                <a data-dbclick data-title="编辑跟进" class="layui-btn layui-btn-sm" data-modal='{:url("editFollow")}?id={$vo.id}'>编 辑</a>
                {/if}
                {if auth("admin/customer.follow/remove")}
                <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除数据吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}">删 除</a>
                {/if}
                
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}


</div>
<style>
    .layui-obj{
        margin-top: 10px!important;
    }
    .layui-tab{
        margin-top: 10px!important;
    }
	.layui-table td, .layui-table th {
		box-sizing: border-box;
	}
</style>
{/block}

